﻿using System;

namespace NotAClue.ComponentModel.DataAnnotations
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
    public class ShowFkColumnAttribute : Attribute
    {
        internal static ShowFkColumnAttribute Default = new ShowFkColumnAttribute();
        public ShowFkColumnAttribute() : this(false) { }

        /// <summary>
        /// Gets a value indicating whether [show column].
        /// </summary>
        /// <remarks></remarks>
        public Boolean ShowColumn { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="ShowFkColumnAttribute"/> class.
        /// </summary>
        /// <param name="showColumn">if set to <c>true</c> [show column].</param>
        /// <remarks></remarks>
        public ShowFkColumnAttribute(Boolean showColumn)
        {
            ShowColumn = showColumn;
        }
    }
}